import 'package:flutter/material.dart';
import './router_handler.dart';
import 'package:fluro/fluro.dart';

class Routes{
    static String root = '/';
    static String loginPage = '/login';
    static String homePage = '/home';
    static String setting = '/setting';
    static String modifyPassword = '/modifyPassword';
    static String examList = '/examList';
    static String examResult = '/examList/examResult';

    static String test = '/test';
    static String test2 = '/test2';
    static String test3 = '/test3';
    static String test4 = '/test4';
    static String test5 = '/test5';
    static String test6 = '/test6';
    static String test7 = '/test7';
    static String test8 = '/test8';
    static String test9 = '/test9';
    static String test10 = '/test10';
    static String test11 = '/test11';
    static String test12 = '/test12';
    static String test13 = '/test13';
    static String test14 = '/test14';
    static String test15 = '/test15';
    static String test16 = '/test16';
    static String test17 = '/test17';
    static String test18 = '/test18';
    static String test19 = '/test19';
    static String test20 = '/test20';
    static String test21 = '/test21';
    static String test22 = '/test22';
    static String test23 = '/test23';
    static String test24 = '/test24';
    static String test25 = '/test25';

    static void configureRoutes(Router router){
        router.notFoundHandler = new Handler(
            handlerFunc: (BuildContext context,Map<String,dynamic> params){
                print("页面没有找到");
            }
        );

        router.define(loginPage,handler: loginHandler,transitionType: TransitionType.fadeIn);
        router.define(homePage,handler: homePageHandler,transitionType: TransitionType.fadeIn);
        router.define(setting,handler: settingHandler,transitionType: TransitionType.fadeIn);
        router.define(modifyPassword,handler: modifyPasswordHandler,transitionType: TransitionType.fadeIn);

        router.define(examList,handler: examListHandler,transitionType: TransitionType.fadeIn);
        router.define(examResult,handler: examResultHandler,transitionType: TransitionType.fadeIn);

        router.define(test,handler: testHandler,transitionType: TransitionType.fadeIn);
        router.define(test2,handler: test2Handler,transitionType: TransitionType.fadeIn);
        router.define(test3,handler: test3Handler,transitionType: TransitionType.fadeIn);
        router.define(test4,handler: test4Handler,transitionType: TransitionType.fadeIn);
        router.define(test5,handler: test5Handler,transitionType: TransitionType.fadeIn);
        router.define(test6,handler: test6Handler,transitionType: TransitionType.fadeIn);
        router.define(test7,handler: test7Handler,transitionType: TransitionType.fadeIn);
        router.define(test8,handler: test8Handler,transitionType: TransitionType.fadeIn);
        router.define(test9,handler: test9Handler,transitionType: TransitionType.fadeIn);
        router.define(test10,handler: test10Handler,transitionType: TransitionType.fadeIn);
        router.define(test11,handler: test11Handler,transitionType: TransitionType.fadeIn);
        router.define(test12,handler: test12Handler,transitionType: TransitionType.fadeIn);
        router.define(test13,handler: test13Handler,transitionType: TransitionType.fadeIn);
        router.define(test14,handler: test14Handler,transitionType: TransitionType.fadeIn);
        router.define(test15,handler: test15Handler,transitionType: TransitionType.fadeIn);
        router.define(test16,handler: test16Handler,transitionType: TransitionType.fadeIn);
        router.define(test17,handler: test17Handler,transitionType: TransitionType.fadeIn);
        router.define(test18,handler: test18Handler,transitionType: TransitionType.fadeIn);
        router.define(test19,handler: test19Handler,transitionType: TransitionType.fadeIn);
        router.define(test20,handler: test20Handler,transitionType: TransitionType.fadeIn);
        router.define(test21,handler: test21Handler,transitionType: TransitionType.fadeIn);
        router.define(test22,handler: test22Handler,transitionType: TransitionType.fadeIn);
        router.define(test23,handler: test23Handler,transitionType: TransitionType.fadeIn);
        router.define(test24,handler: test24Handler,transitionType: TransitionType.fadeIn);
        router.define(test25,handler: test25Handler,transitionType: TransitionType.fadeIn);
    }
}